package com.gimi.cloud.jimi.manage.consumer.service.prod;

import com.gimi.cloud.jimi.common.exception.MsgException;
import com.gimi.cloud.jimi.common.utils.reqhead.Response;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @auther loongs
 * @date 2018/1/29  17:03
 */
public interface SecurityInstructionsService {

    /**
     * 获得保障说明列表（分页）
     * @return 菜单列表
     */
    Response getSecurityInstructionsPageList(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response)throws MsgException;

    /**
     * 获得单个保障说明
     * @return 菜单列表
     */
    Response getSecurityInstructionsSingle(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response)throws MsgException;

    /**
     * 添加或者修改保障说明
     * @return 菜单列表
     */
    Response addOrEditSecurityInstructions(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response)throws MsgException;

    /**
     * 删除保障说明
     * @return 菜单列表
     */
    Response delSecurityInstructions(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response)throws MsgException;

    /**
     * 上传商品保障说明图片
     * @return url
     */
    Response fileUploadSecurityInstructions(HttpServletResponse response, HttpServletRequest request) throws Exception;

}
